package com.yunsc.system.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.yunsc.system.entity.YunscStoreRoleEntity;
import com.yunsc.system.entity.YunscStoreRoleMenuEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-04-21 17:29
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class StoreRoleVO extends YunscStoreRoleEntity {

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<YunscStoreRoleEntity> children;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @JsonProperty("roleMenu")
    private List<YunscStoreRoleMenuEntity> roleMenu;


    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @JsonProperty("menuIds")
    private List<Integer> menuIds;



    // @JsonInclude(JsonInclude.Include.NON_NULL)
    // @TableField(exist = false)
    // private YunscStoreUserRoleEntity pivot;
}
